package com.eleven.service;

import java.util.List;

import com.eleven.pojo.News;

public interface NewsService {
	/**
	 * 查看资讯详情By newsId
	 */
	public List<News> getAllNewsByNewsId(Integer newsId);
	
	/**
	 * 查看资讯详情By newsUsId
	 */
	public List<News> getAllNewsByNewsUserId(Integer newsUsId);
	
	/**
	 * 新增资讯
	 */
	public int insertNews(News news);
	
	/**
	 * 修改资讯
	 */
	public int updateNews(Integer newsId);
	
	/**
	 * 删除资讯
	 */
	public int deleteNews(Integer newsId);

	/**
	 * 查看全部资讯
	 */
	public List<News> getAllNews();
}
